//
//  AppDelegate+UMeng.m
//  TreatHeart_Patient
//
//  Created by yuy03 on 2018/6/26.
//  Copyright © 2018年 bluemobi. All rights reserved.
//

#import "AppDelegate+UMeng.h"
#import <UMShare/UMShare.h>
#import "WXApiManager.h"

@implementation AppDelegate (UMeng)


- (void)confitUShareSettings
{
    /*
     * 打开图片水印
     */
    //[UMSocialGlobal shareInstance].isUsingWaterMark = YES;
    
    /*
     * 关闭强制验证https，可允许http图片分享，但需要在info.plist设置安全域名
     <key>NSAppTransportSecurity</key>
     <dict>
     <key>NSAllowsArbitraryLoads</key>
     <true/>
     </dict>
     */
    //[UMSocialGlobal shareInstance].isUsingHttpsWhenShareContent = NO;
    
}

- (void)configUSharePlatforms
{
    // 设置友盟AppKey
    [[UMSocialManager defaultManager]setUmSocialAppkey:@"5b323056f29d983fc900000f"];
    
    /* 设置微信的appKey和appSecret */
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatSession appKey:WX_URL_APPID appSecret:@"168408175af9285175b9b4e142efc0a8" redirectURL:@"http://www.baidu.com"];
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatTimeLine appKey:WX_URL_APPID appSecret:@"168408175af9285175b9b4e142efc0a8" redirectURL:@"http://www.baidu.com"];
    
}

@end
